.h3 {
  display: block;
  font-size: 32rpx;
  font-weight: bold;
  color: #000;
  font-family: Arial;
}
.p {
  font-size: 24rpx;
  line-height: 1.5;
}

.color-gray {
  color: #878787;
}
.color-orange {
  color: #f08300;
}
.color-blue {
  color: blue;
}
.color-blue2 {
  color: rgb(0, 115, 146)
}
.color-blue3 {
  color: rgb(0, 158, 163)
}

.color-black-light {
  color: #404040;
}

.box-shadow {
  box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.1);
  border-radius: 20rpx;
  background: #fff;
}

.line-through {
  text-decoration: line-through;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.opacity0 {
  opacity: 0;
}
.text-wrap {
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.text-nowrap {
  white-space: nowrap;
}

.text-ellipsis {
  overflow: hidden; 

  text-overflow: ellipsis;

  display: -webkit-box; 

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 2; 
}

.fontArial {
  font-family: Arial;
}

.fontSize( @count )when( @count > 8 ) {
  .f@{count} {
    font-size: (2rpx * @count);
  }
  .fontSize((@count - 2));
}
.fontSize(32);
.fontBold {
  font-weight: bold;
}
.fontLight {
  font-weight: 200;
}
.fontWeightMiddle {
  font-weight: 400;
}

.fontWeight600 {
  font-weight: 600;
}

.btn-linear-yellow {
  background: linear-gradient(to top right, #f08300, #f5a623);
}

.width( @count ) when ( @count > 0) {
  .w@{count} {
    width: (@count * 2rpx);
  }
  .width((@count - 10));
}
.width(100);

.loop( @count )when( @count > 0 ) {
  .m@{count} {
    margin: (2rpx * @count);
  }
  .p@{count} {
    padding: (2rpx * @count);
  }
  .ml@{count} {
    margin-left: (2rpx * @count);
  }
  .mr@{count} {
    margin-right: (2rpx * @count);
  }
  .mt@{count} {
    margin-top: (2rpx * @count);
  }
  .mb@{count} {
    margin-bottom: (2rpx * @count);
  }
  .pl@{count} {
    padding-left: (2rpx * @count);
  }
  .pr@{count} {
    padding-right: (2rpx * @count);
  }
  .pt@{count} {
    padding-top: (2rpx * @count);
  }
  .pb@{count} {
    padding-bottom: (2rpx * @count);
  }

  .loop((@count - 10));
}
.loop(100);

.flex {
  display: flex;

  &.center {
    justify-content: center;
    align-items: center;
  }

  &.vertical-center {
    align-items: center;
  }

  &.horizontal-center {
    justify-content: center;
  }
}

.flex-vertical {
  display: flex;
  flex-direction: column;

  &.center {
    justify-content: center;
    align-items: center;
  }
}

.flex__item {
  flex: 1;
}

.wrap {
  flex-wrap: wrap;
}
